package com.springboot.mybatis.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @version V1.0
 * @program: mybatis
 * @description
 * @author: 张要廷<zhang_yt @ suixingpay.com>
 * @create: 2019/10/21 18:53
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
//开启mybatis缓存时需要序列化对象
public class User implements Serializable {

    /**用户id**/
    private String id;

    /**登录名**/
    private String loginName;

    /**密码**/
    private String pwd;

    /**用户名**/
    private String userName;

    /**年龄**/
    private Integer age;

    /**用户订单**/
    private List<Order> orders;

}
